]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Set up emoji panel pan gesture in capture phase
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 24 May 2022 20:07:27 +0000 (22:07 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 27 May 2022 09:29:26 +0000 (09:29 +0000)
We need this to catch events before they reach to the emoji
keys, and the gesture can begin/end properly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2304>

js/ui/keyboard.js

index b9e3aec60f4c1b5122c402852c395a19591044aa..570d39ccbffc97e2d9c136f1dd02e0df588f01e4 100644 (file)
@@ -706,7 +706,7 @@ var EmojiPager = GObject.registerClass({
         panAction.connect('gesture-cancel', this._onPanCancel.bind(this));
         panAction.connect('gesture-end', this._onPanEnd.bind(this));
         this._panAction = panAction;
-        this.add_action(panAction);
+        this.add_action_full('pan', Clutter.EventPhase.CAPTURE, panAction);
     }
 
     get delta() {